package top.wardyan.sqlchecker.ctrl;

import java.io.File;
import java.net.URL;

import com.jfinal.aop.Inject;
import com.jfinal.core.Path;
import com.jfinal.kit.Prop;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.resource.ResourceUtil;
import top.wardyan.base.common.config.ConfigProp;
import top.wardyan.common.ctrl.BaseController;
import top.wardyan.sqlchecker.business.SQLCheckerBusiness;
import top.wardyan.wtask.service.IProcService;

@Path("/file")
public class FileTestCtrl extends BaseController{

	private static final cn.hutool.log.Log log = cn.hutool.log.Log.get();
	private static final Prop PROP = ConfigProp.load();

	@Inject IProcService procService;
	@Inject SQLCheckerBusiness business;
	
	
	public void deal() {
		File f = FileUtil.mkdir("test20250210");
		File ok = FileUtil.newFile("config.txt");

		URL u = ResourceUtil.getResource("config.txt");;
		this.renderNull();
	}
}
